package com.xe.icard;

import com.xe.framework.XEApp;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;


public class Config {

	public static final double LATITUDE = 29.621365d;
	public static final double LONGITUDE = 103.717032d;
	
	private static final String CONFIG_FILE = "config";
	private static final String OP = "op";
	private static SharedPreferences mPreferences;
	private static Editor mEditor;
	
	public static void initConfig(){
		Context context = XEApp.getInstance().getApplicationContext();
		mPreferences = context.getSharedPreferences(CONFIG_FILE,
				Context.MODE_PRIVATE);
		mEditor = mPreferences.edit();
		return;
	}
	
	public static boolean IsShowOP() {
		boolean ret = mPreferences.getBoolean(OP, true);
		return ret;
	}

	public static void setShownOP() {
		mEditor.putBoolean(OP, false);
		mEditor.commit();
	}
}
